package org.neuedu.ssmp.crm.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.neuedu.ssmp.crm.entity.SysRoleAuthor;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author MoonHolder
 * @since 2019-12-09
 */
public interface SysRoleAuthorMapper extends BaseMapper<SysRoleAuthor> {

    @Select("select m.id id, m.name ,m.level,m.code from sys_role_author s join menuitem m on s.menuitem_id = m.id where s.role_id=#{id}")
    List<SysRoleAuthor> list(@Param("id") Integer id);
}
